package com.example.springbootlearn.netty.dto;


import cn.hutool.json.JSONUtil;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class BizMsg {


    // 默认 invite 业务类型
    private String code;
    private String messageId = "1000";
    private String msg;
    private Integer role;
    private String timestamp;
    private String receiverTime;

    public static void main(String[] args) throws InterruptedException {
        BizMsg bizMsg = new BizMsg();
        bizMsg.setCode("invite");
        bizMsg.setMsg("你好，欢迎加入我们！");
        log.info(JSONUtil.toJsonStr(bizMsg));

    }


}
